package com.example.studentknowledgesys.service;

import com.example.studentknowledgesys.dto.ChangePasswordDTO;
import com.example.studentknowledgesys.entity.User;

import java.util.List;

/**
 * @author 光的代言人
 */
public interface UserService {
    User findByUsername(String username);
    User judgePassword(ChangePasswordDTO  changePasswordDTO);
    void register(User user);
    User login(String username, String password);
    void updatePassword(Long id, String password);
    List<User> findAll();

    boolean deleteUser(Long id);

    void updateUserRole(Long userId, String role);
}
